<!DOCTYPE html>
<html>
    <head>
        <title>EirB'asket</title>
        <base href="{{baseURL}}">

        <!-- Bootstrap -->
		<link href="vendor/nervo/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
		<link href="assets/js/datepicker/css/datepicker.css" rel="stylesheet" media="screen">
		<link href="assets/css/projet-sgbd-2012.css" rel="stylesheet" media="screen">
        <meta http-equiv="Content-Type" Content="text/html; charset=UTF-8">

		<link rel="shortcut icon" type="image/ico" href="assets/css/img/favicon.ico" />
	</head>
    <body>
        <div id="body-container" class="container">
            <h1><a href="{{baseURL}}">EirB'asket</a></h1>

            <div class="navbar">
                <div class="navbar-inner">
                    <ul class="nav nav-pills">
                        {% for url, d in menu %}
                        {% if d['active'] %}
                        <li class="active">
                            {% else %}
                        <li>
                            {% endif %}
                            <a href="{{urlFor(url)}}">
                                {% if 'name' in d|keys%}
                                {{d['name']}}
                                {% else %}
                                {{lang(url)}}
                                {% endif %}
                            </a>
                        </li>
                        {% endfor %}
                    </ul>
                </div>
            </div>

            {% if flash['success'] is defined %}
            <div class="alert alert-success">
                {{flash['success']}}
            </div>
            {% endif %}

            {% if flash['error']|length > 0 %}
            <div class="alert alert-error">
                <p><strong>Oj, något gick snett!</strong></p>

                <ul class="error">
                    {% for e in flash['error'] %}
                    <li>{{e}}</li>
                    {% endfor %}
                </ul>
            </div>
            {% endif %}

            {% block content %}{% endblock %}
        </div>

        <script src="http://code.jquery.com/jquery-latest.js"></script>
		<script src="vendor/nervo/bootstrap/js/bootstrap.min.js"></script>
		<script src="assets/js/datepicker/js/bootstrap-datepicker.js"></script>
		<script src="assets/js/projet-sgbd-2012.js"></script>
	</body>
</html>
